package common;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@JsonPropertyOrder(alphabetic = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PageResult<T> implements Serializable {

    private static final long serialVersionUID = 1290248968387762354L;

    /**
     * 总记录数
     * */
    private int totalSize;

    /**
     * 页记录数
     * */
    private int pageSize;

    /**
     * 当前页 页数
     * */
    private int currentPageNum;

    /**
     * 当前页 记录详情
     * */
    private List<T> recordList;
}
